package top.milkbox.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import top.milkbox.domain.base.PostBase;

/**
 * 
 * @TableName tb_post
 */
@TableName(value ="tb_post")
@Data
public class Post extends PostBase implements Serializable {

    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 外键，用户表id
     */
    private Integer userId;

    /**
     * 内容
     */
    private String content;

    /**
     * 图片列表，用逗号分割
     */
    private String image;

    /**
     * 浏览量
     */
    private Integer view;

    /**
     * 创建时间
     */
    private String time;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}